//
//  LoginViewModel.h
//  Yihubang
//
//  Created by hyu on 16/7/29.
//  Copyright © 2016年 jinghao. All rights reserved.
//

#import "BaseViewModel.h"

@interface PreLoginViewModel : BaseViewModel

@property (nonatomic , strong) NSString * telePhoneStr;
@property (nonatomic , strong) NSString * codeStr;
@property (nonatomic, strong, readonly) NSString *phoneCodeText;
@property (nonatomic, strong, readonly) RACSignal *validLoginSignal;
@property (nonatomic, strong, readonly) RACSignal *getCodeSignal;

/// The command of login button.
@property (nonatomic, strong, readonly) RACCommand *loginCommand;
@property (nonatomic, strong, readonly) RACCommand *autoLoginCommand;

@property (nonatomic, strong, readonly) RACCommand *otherLoginCommand;

@property (nonatomic, strong) RACCommand *loginSuccessCommand;
@property (nonatomic, strong) RACCommand *loginErrorCommand;
@property (nonatomic, strong,readonly) RACCommand *phoneCodeCommand;

@property (nonatomic, strong, readonly) RACCommand *nextCommand;
@property (nonatomic, strong, readonly) RACCommand *ceshi;
@property (nonatomic, strong, readonly) RACCommand *userAgreement;


- (void)uploadLogString;
@end
